package com.icss.action.usermanage;


import com.icss.action.BaseAction;
import com.icss.service.usermanage.UserManageService;

/**
 * 管理员管理
 * @author shixiaolong
 * @dateJun 9, 2012
 */
public class UserManageAction extends BaseAction{
	
	UserManageService userManageService;
	
	public UserManageService getUserManageService() {
		return userManageService;
	}

	public void setUserManageService(UserManageService userManageService) {
		this.userManageService = userManageService;
	}

	public String frame(){
		return "frame";
	}
	
	public String list(){
		request.setAttribute("userList", userManageService.getUserList(request));
		return "list";
	}
	
	public String edit(){
		request.setAttribute("map", userManageService.getUserDetail(request));
		return "edit";
	}
	
	public String save(){
		request.setAttribute("result", userManageService.save(request));
		return "saveResult";
	}
	
	public String delete(){
		System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1");
		System.out.println("222222222222");
		this.writeText(userManageService.delete(request));
		return null;
	}
	
}
